home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000408_news@columbia.edu _Fri Jul 14 10:10:35 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA07693
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 14 Jul 2000 10:10:35 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA01395
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 14 Jul 2000 10:10:34 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA18983
  10.     for kermit.misc@watsun.cc.columbia.edu; Fri, 14 Jul 2000 09:54:24 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: Suggestion for Kermit script language
  14. Date: 14 Jul 2000 13:54:23 GMT
  15. Organization: Columbia University
  16. Message-ID: <8kn62f$ih5$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <8km7ci$941$1@newsmaster.cc.columbia.edu>,
  20. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  21. : In article <396E9035.C028E5FE@value.net>,
  22. : Mark Sapiro  <msapiro@value.net> wrote:
  23. : : Often in a macro or script one wishes to save the current settings of
  24. : : certain parameters before changing them so that they can be restored
  25. : : later.  When the setting is reflected in a variable, this can be done,
  26. : : but it is a bit awkward.  Some settings are not reflected in variables,
  27. : : and saving a prior setting can't be done.
  28. : I think that Frank and I would love to do this just like we would
  29. : love to have a SAVE command for every feature set.  But it is a lot
  30. : of work.  There are simply thousands of commands in Kermit.
  31. Right.  Add a feature like this in all its glory (a variable for every
  32. setting) and n people are happy and n*n people howl in agony at the
  33. resulting program bloat.
  34.  
  35. In a pinch, for any setting that can't be queried programatically, you
  36. can always make your own variable and set it whenever you give the
  37. corresponding SET command.
  38.  
  39. By the way, certain settings are on the stack, and therefore save and
  40. restore themselves automatically whenever you enter/leave a macro or
  41. command file:
  42.  
  43.   SET QUIET { ON, OFF }
  44.   SET { MACRO, TAKE } ERROR { ON, OFF }
  45.   SET INPUT TIMEOUT { PROCEED, QUIT }
  46.   SET INPUT CASE { IGNORE, OBSERVE }
  47.   SET COUNT (a relic from from the early days)
  48.  
  49. - Frank